package jou.cs.mapper;

import jou.cs.entity.TAns;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AnsRepository extends JpaRepository<TAns, Long> {
    List<TAns> findAllByQid(Long qid);
    Page<TAns> findAllByQid(Long qid, Pageable page);
}
